import storage from "@/utils/storage";
const getters = {
  token: state => state.user.token,
  sid: state => state.user.sid,
  uid: state => state.user.uid,
  openid: state => state.user.openid,
  user_type: state => state.user.user_type,
  unlock_chart: state => state.user.unlock_chart,
  unlock_end_time: state => state.user.unlock_end_time,
  avatar: state => state.user.avatar,
  name: state => state.user.name,
  roles: state => state.user.roles,
  showLogin: state => state.user.showLogin,
  is_vip: state => state.user.is_vip,
  vCount: state => state.user.vCount,
  vip_last_day: state => state.user.vip_last_day,
  balance: state => state.user.balance,
  getReport(state) {
    state.report = storage.get('report');
    return state.report;
  },
  // // 方案
  // sub_themes: state => state.report.themes,
  // report_parent_id: state => state.report.parent_id,
  // report_page: state => state.report.page,
  // report_theme_id: state => state.report.theme_id,
  // report_sub_breadcrumbs: state => state.report.sub_breadcrumbs,
  // // 群组
  // groups: state => state.group.groups,
  // gid: state => state.group.gid,
  // gfresh: state => state.group.fresh,
  // group_count: state => state.group.groupCount
}
export default getters
